//    Copyright (C) Kherty.  All rights reserved.
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Contracts;

namespace OpenLS.Spreadsheet.UI.Internals
{
    class UniqueList<T>: List<T>
    {
        public new void Add (T t)
        {
            Contract.Requires(!Contains(t));
            Debug.Assert(!Contains(t));
            base.Add(t);
        }
    }
}